package cn.tedu.smartos.family_user.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ElectronicFence {
    @ApiModelProperty(value = "围栏ID")
    private Long fenceId;

    @ApiModelProperty(value = "关联的老人用户ID")
    private Long elderlyUserId;

    @ApiModelProperty(value = "关联的家属用户ID")
    private Long familyUserId;

    @ApiModelProperty(value = "围栏名称", example = "小区安全区域")
    private String fenceName;

    @ApiModelProperty(value = "围栏状态：0-禁用,1-启用")
    private Integer status;

    @ApiModelProperty(value = "围栏中心点纬度", example = "39.904989")
    private Double centerLatitude;

    @ApiModelProperty(value = "围栏中心点经度", example = "116.405285")
    private Double centerLongitude;

    @ApiModelProperty(value = "围栏半径(米)", example = "500.0")
    private Double radius;

    @ApiModelProperty(value = "越界报警消息", example = "老人已离开安全区域")
    private String alertMessage;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @ApiModelProperty(value = "最后检测状态：0-围栏内,1-围栏外")
    private Integer lastStatus;

    @ApiModelProperty(value = "最后检测时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastCheckTime;
}